﻿@model JRFinances.ViewModels.RealTransactions.RealTransactionsInGroupViewModel
           
@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
        <table>
        <tr>
            <td>Grupa</td>
            <td>@Html.DropDownList("GroupId", String.Empty)
            @Html.ValidationMessageFor(model => model.GroupId)</td>
        </tr>
        <tr>
            <td>Uzytkownik</td>
            <td>@Html.EditorFor(model => model.UserCriteria)
            @Html.ValidationMessageFor(model => model.UserCriteria)</td>
        </tr>
        <tr>
            <td>Spolka</td>
            <td>@Html.EditorFor(model => model.CompanyCriteria)
            @Html.ValidationMessageFor(model => model.CompanyCriteria)</td>
        </tr>
        <tr>
            <td>Data od</td>
            <td>@Html.EditorFor(model => model.DateFromCriteria)
            @Html.ValidationMessageFor(model => model.DateFromCriteria)</td>
        </tr>
        <tr>
            <td>Data do</td>
            <td>@Html.EditorFor(model => model.DateToCriteria)
            @Html.ValidationMessageFor(model => model.DateToCriteria)</td>
        </tr>
        <tr>
            <td>Transakcje kupna</td>
            <td>@Html.EditorFor(model => model.BuyCriteria)
            @Html.ValidationMessageFor(model => model.DateFromCriteria)</td>
        </tr>
        <tr>
            <td>Transakcje sprzedazy</td>
            <td>@Html.EditorFor(model => model.SellCriteria)
            @Html.ValidationMessageFor(model => model.SellCriteria)</td>
        </tr>
        <tr>
            <td></td>
            <td><input type="submit" value="Szukaj" /></td>
        </tr>
         </table>
}

<link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" />
    <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
    <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
<script>
    $(function () {
        $("#DateFromCriteria").datepicker({ dateFormat: 'yy-mm-dd' });
    });

    $(function () {
        $("#DateToCriteria").datepicker({ dateFormat: 'yy-mm-dd' });
    });
    </script>